<script src="../include.js"></script>
<script>
    asyncTest(done => {
        let counter = 0;
        setTimeout(() => {
            history.pushState({}, "test", "history-replace-push-state-race-2.html");
            counter++;
            if (counter === 2) {
                println("test done!");
                done();
            }
        }, 0);
        setTimeout(() => {
            history.pushState({}, "test", "history-replace-push-state-race-2.html");
            counter++;
            if (counter === 2) {
                println("test done!");
                done();
            }
        }, 0);
    });
</script>
